import $http from '@renderer/config/request'
const userSongs = {
  // 用户已喜欢的歌曲
  song_user_likeList: (id) => {
    const params = {
      timestamp: Date.now(),
      uid: id
    }
    return $http.post(`/likelist`, params)
  },
  // 获取音乐详细，可以穿单个id，多个id用,拼接
  song_detail: (ids) => {
    const params = {
      timestamp: Date.now(),
      ids: ids
    }
    return $http.post(`/song/detail`, params)
  },
  // 获取音乐Url
  song_url: (ids) => {
    const params = {
      timestamp: Date.now(),
      id: ids,
      level: 'standard'
    }
    return $http.post(`/song/url/v1`, params)
  }
}

export default userSongs
